package cn.blackbirds.blocks.layer;

import cn.blackbirds.blocks.MainActivity;

import com.wiyun.engine.nodes.Scene;

public class GameScene extends Scene{
	MainActivity mainActive;
	GameLayer gameLayer;
	
	public GameScene(MainActivity mainActive) {	
		this.mainActive = mainActive;
		gameLayer = new GameLayer(mainActive);
        addChild(gameLayer);              
        setKeyEnabled(true);        
        autoRelease(true);
	}
	
	@Override
	protected boolean onBackButton() {					
		mainActive.showExitRemoveBallConfirm();
		return true;
	}
}
